/************************************************************
 * Project Name         [Thinking_In_Java]
 * File Name            [PrintShape.java]
 * Creation Date        [10-Jul-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_01_console_app.shape_print;

/**
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public class PrintShape {

	/**
	 * 测试方法
	 * 
	 * @param args
	 *            命令行参数
	 */
	public static void main(String[] args) {
		System.out.println("\n空心矩形:");
		ConsoleShape.rectangle(5, 10);
		System.out.println("\n实心矩形:");
		ConsoleShape.solidRect(5, 10);

		System.out.println("\n空心上三角(右):");
		ConsoleShape.upperTriangle(10, 10, true);
		System.out.println("\n空心上三角(左):");
		ConsoleShape.upperTriangle(10, 10, false);
		System.out.println("\n实心上三角(右):");
		ConsoleShape.solidUpperTriangle(10, 10, true);
		System.out.println("\n实心上三角(左):");
		ConsoleShape.solidUpperTriangle(10, 10, false);

		System.out.println("\n空心下三角(左):");
		ConsoleShape.lowerTriangle(10, 10, true);
		System.out.println("\n空心下三角(右):");
		ConsoleShape.lowerTriangle(10, 10, false);
		System.out.println("\n实心下三角(左):");
		ConsoleShape.solidLowerTriangle(10, 10, true);
		System.out.println("\n实心下三角(右):");
		ConsoleShape.solidLowerTriangle(10, 10, false);

		System.out.println("\n空心菱形:");
		ConsoleShape.diamond(20, 20);
		System.out.println("\n实心菱形:");
		ConsoleShape.solidDiamond(20, 20);

		System.out.println("\n九九乘法表: ");
		ConsoleShape.multiTable();

		System.out.println("\n复杂图形示例:");
		ConsoleShape.complexShape(20, 40);
	}

}
